/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.source.entity.time;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.User;

import org.hibernate.validator.constraints.Length;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 * 时间资源管理Entity
 * @author zc
 * @version 2017-04-20
 */

@XmlRootElement(name="datecfg")
public class EleSourceTime extends DataEntity<EleSourceTime> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String mode;		// mode
	private String fgcolor;		// 字体颜色
	private String size;		// 字体大小
	private String bgcolor;		// bgcolor
	private String align;		// align
	private Integer alpha;
	
	private String format;		// 日期格式
	private String area;

	public EleSourceTime() {
		super();
	}

	public EleSourceTime(String id){
		super(id);
	}
	public List<User> users = null;

	@XmlTransient
	public List<User> getUsers() {
		return users;
	}

	public void setUsers(List<User> users) {
		this.users = users;
	}
	@XmlTransient
	@Length(min=0, max=50, message="视频名称长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@XmlElement(name = "mode")  
	@Length(min=0, max=255, message="mode长度必须介于 0 和 255 之间")
	public String getMode() {
		return mode;
	}

	public void setMode(String mode) {
		this.mode = mode;
	}
	
	@XmlElement(name = "fgcolor")  
	@Length(min=0, max=100, message="字体颜色长度必须介于 0 和 100 之间")
	public String getFgcolor() {
		return fgcolor;
	}

	public void setFgcolor(String fgcolor) {
		this.fgcolor = fgcolor;
	}
	@XmlElement(name = "bgcolor")  
	@Length(min=0, max=100, message="字体颜色长度必须介于 0 和 100 之间")
	public String getBgcolor() {
		return bgcolor;
	}

	public void setBgcolor(String bgcolor) {
		this.bgcolor = bgcolor;
	}
	@XmlElement(name = "align")  
	@Length(min=0, max=100, message="字体颜色长度必须介于 0 和 100 之间")
	public String getAlign() {
		return align;
	}
	@XmlElement(name = "size")  
	@Length(min=0, max=11, message="字体大小长度必须介于 0 和 11 之间")
	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}
	
	@XmlElement(name = "format")  
	@Length(min=0, max=255, message="日期格式长度必须介于 0 和 255 之间")
	public String getFormat() {
		return format;
	}

	public void setFormat(String format) {
		this.format = format;
	}
	
	@XmlTransient
	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public void setAlign(String align){
		this.align = align;
	}

	public Integer getAlpha(){
		return alpha;
	}

	public void setAlpha(Integer alpha){
		this.alpha = alpha;
	}
}